package org.basic.sms.domain.bo;


import org.basic.common.core.validate.AddGroup;
import org.basic.common.core.validate.EditGroup;
import org.basic.common.mybatis.core.domain.BaseEntity;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import org.basic.sms.domain.SysSmsTemplate;

/**
 * 邮件模板业务对象 sys_sms_template
 *
 * @author Shao Hua
 * @date 2023-07-20
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SysSmsTemplate.class, reverseConvertGenerate = false)
public class SysSmsTemplateBo extends BaseEntity {

    /**
     * 模板ID
     */
    @NotNull(message = "模板ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 模板名称
     */
    @NotBlank(message = "模板名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 模板编码
     */
    @NotBlank(message = "模板编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String code;

    /**
     * 模板类型（0 验证码 ，1 通知）
     */
    @NotNull(message = "模板类型（0 验证码 ，1 通知）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long type;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    /**
     * 内容
     */
    @NotBlank(message = "内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String content;

    /**
     * 渠道ID
     */
    @NotNull(message = "渠道ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long channelId;

    /**
     * 状态（0 开启，1 未开启 ）
     */
//    @NotNull(message = "状态（0 开启，1 未开启 ）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer status;


}
